//FooterDecorator.java
package decorator.printinvoice;

/**
 *@author:youtubezou
 *@version:2012-7-25
 */
public class FooterDecorator extends OrderDecorator {

	public FooterDecorator(Order order) {
		super(order);
	}
	
	@Override
	public void print(){
		order.print();
		this.printFooter();
	}
	
	private void printFooter(){
		System.out.println("==========================================================");
		System.out.printf("Total:%52.2f", order.getGrandTotal());
	}

}
